<%@page import="com.oa.jsinfo.User" %>
<%
	//userd by ZhaoYanhui
	String sYGID_session = (String)session.getValue("YGID");
	String sYGXM_session = (String)session.getValue("YGXM");
	String sMM_session = (String)session.getValue("MM");
	String sDLZH_session = (String)session.getValue("DLZH");
	
	//used by YangHaoDong
	User user_session = (User)session.getAttribute("user");
	
	//used by ChenZhenQiang
	//KEN USE 2003-5-21
	String userid   = sYGID_session;
	String username = sYGXM_session;
	String departcode = (String)session.getValue("BMID");
        String loginname =  sDLZH_session;
   
        //if session is null then jump to the index.html

        if  (sYGXM_session == null || sYGXM_session.equals("")
             || sYGID_session == null || sYGID_session.equals("")|| user_session == null){
          String rootPathStr = request.getContextPath();          
          response.sendRedirect(rootPathStr+"/index.html");
        }

%>